package com.wzh.design.proxy.cglib;

/**
 * @description:
 * @author: WZH
 * @time: 2021/6/9 15:32
 */


import com.wzh.design.proxy.proxy1.BuyHouse;
import com.wzh.design.proxy.proxy1.BuyHouseImpl;

/**
 * @Auther: dan gao
 * @Description:
 * @Date: 20:52 2018/1/16 0016
 */
public class CglibProxyTest {
    public static void main(String[] args){

        BuyHouse buyHouse = new BuyHouseImpl();

        CglibProxy cglibProxy = new CglibProxy();

        BuyHouseImpl buyHouseCglibProxy = (BuyHouseImpl) cglibProxy.getInstance(buyHouse);

        buyHouseCglibProxy.buyHosue();
    }
}